home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_gen_ainotbemoved.cog < prev    next >
Text File  |  1999-11-15  |  924b  |  50 lines

  1. # Jones 3D Cog Script
  2. #
  3. # 00_AINotBeMoved
  4. #
  5. # Keeps objects (pedestrians) in place when touched
  6. #
  7. # [RD]
  8. #
  9. # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.     message    startup
  14.     message    touched
  15.     message    timer
  16.  
  17.     thing        unmoved
  18.  
  19.     int        mass=0    local
  20.     int        locked=0    local
  21. end
  22.  
  23. # ========================================================================================
  24.  
  25. code
  26.  
  27. startup:
  28.     mass = GetThingMass(unmoved);
  29.     return;
  30.  
  31. # ........................................................................................
  32.  
  33. touched:
  34.     if (locked) return;
  35.     
  36.     locked = 1;
  37.     SetThingMass(unmoved, 0);
  38.     SetTimer(.25);
  39.     return;    
  40.     
  41. # ........................................................................................
  42.  
  43. timer:
  44.     SetThingMass(unmoved, mass);
  45.     locked = 0;
  46.     return;
  47.  
  48. end
  49.  
  50.